

public class Demo {
    public static void main(String[] args) {
        Demo1.show1(()-> System.out.println("好好学习，天天向上！"));

        Demo1.show1(()-> System.out.println("易政真帅！"));

    }
}
//class Inter1Impl implements Inter1{
//    @Override
//    public void fun1() {
//        System.out.println("好好学习，天天向上！");
//    }
//}
//
//class Inter1Impl2 implements Inter1{
//    @Override
//    public void fun1() {
//        System.out.println("易政真帅！");
//    }
//}
@FunctionalInterface
interface Inter1{
    void fun1();
}
class Demo1{
    public static void show1(Inter1 inter1){
        inter1.fun1();
    }
}
